home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / m / dpx2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-04  |  5.3 KB  |  202 lines

  1. /* machine description for Bull DPX/2 range 
  2.    Copyright (C) 1985, 1986 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /* The following line tells the configuration script what sort of 
  23.    operating system this machine is likely to run.
  24.    USUAL-OPSYS="usg5-3"  */
  25.  
  26. /*
  27.  * You need to either un-comment one of these lines, or copy one 
  28.  * of them to config.h before you include this file.
  29.  * Note that some simply define a constant and others set a value.
  30.  */
  31.  
  32. /* #define ncl_el    /* DPX/2 210,220 etc */
  33. /* #define ncl_mr 1    /* DPX/2 320,340 (and 360,380 ?) */
  34.  
  35. /* Define WORD_MACHINE if addresses and such have
  36.  * to be corrected before they can be used as byte counts.  */
  37.  
  38. /* #define WORD_MACHINE /**/
  39.  
  40. /* Now define a symbol for the cpu type, if your compiler
  41.    does not define it automatically:
  42.    Ones defined so far include vax, m68000, ns16000, pyramid,
  43.    orion, tahoe, APOLLO and many others */
  44.  
  45. /* /bin/cc on ncl_el and ncl_mr define m68k and mc68000 */
  46.  
  47. /* Use type int rather than a union, to represent Lisp_Object */
  48. /* This is desirable for most machines.  */
  49.  
  50. #define NO_UNION_TYPE
  51.  
  52. /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
  53.    the bit field into an int.  In other words, if bit fields
  54.    are always unsigned.
  55.  
  56.    If you use NO_UNION_TYPE, this flag does not matter.  */
  57.  
  58. #define EXPLICIT_SIGN_EXTEND
  59.  
  60. /* Data type of load average, as read out of kmem.  */
  61.  
  62. #define LOAD_AVE_TYPE long
  63.  
  64. /* Convert that into an integer that is 100 for a load average of 1.0  */
  65.  
  66. #define FSCALE 1000.0
  67. #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
  68.  
  69. /* Define CANNOT_DUMP on machines where unexec does not work.
  70.    Then the function dump-emacs will not be defined
  71.    and temacs will do (load "loadup") automatically unless told otherwise.  */
  72.  
  73. /*#define CANNOT_DUMP /**/
  74.  
  75. /* Define VIRT_ADDR_VARIES if the virtual addresses of
  76.    pure and impure space as loaded can vary, and even their
  77.    relative order cannot be relied on.
  78.  
  79.    Otherwise Emacs assumes that text space precedes data space,
  80.    numerically.  */
  81.  
  82. /* #define VIRT_ADDR_VARIES /**/
  83.  
  84. /* Define C_ALLOCA if this machine does not support a true alloca
  85.    and the one written in C should be used instead.
  86.    Define HAVE_ALLOCA to say that the system provides a properly
  87.    working alloca function and it should be used.
  88.    Define neither one if an assembler-language alloca
  89.    in the file alloca.s should be used.  */
  90.  
  91. #define C_ALLOCA
  92. /* #define HAVE_ALLOCA /**/
  93.  
  94. /* Define NO_REMAP if memory segmentation makes it not work well
  95.    to change the boundary between the text section and data section
  96.    when Emacs is dumped.  If you define this, the preloaded Lisp
  97.    code will not be sharable; but that's better than failing completely.  */
  98.  
  99. #define NO_REMAP
  100.  
  101. /*
  102.  * end of the standard macro's
  103.  */
  104.  
  105. /*
  106.  * a neat identifier to handle source mods (if needed)
  107.  */
  108. #ifndef DPX2
  109. #define DPX2
  110. #endif
  111.  
  112. /* Disable support for shared libraries in unexec.  */
  113.  
  114. #undef USG_SHARED_LIBRARIES
  115.  
  116. /*
  117.  * if we use X11, libX11.a has these...
  118.  */
  119. # undef LIB_X11_LIB
  120. # define LIB_X11_LIB -lX11
  121. # undef LIBX11_SYSTEM
  122. # define LIBX11_SYSTEM -lmalloc -lnsl
  123.  
  124. /*
  125.  * useful if you have INET loaded
  126.  */
  127. # define LIBS_MACHINE -linet
  128.  
  129.  
  130. #if (defined(ncl_mr) || defined(ncl_el)) && !defined (NBPC)
  131. # define NBPC 4096
  132. #endif
  133.  
  134. /*
  135.  * if SIGIO is defined, much of the emacs
  136.  * code assumes we are BSD !!
  137.  */
  138. #ifdef SIGIO
  139. #define BROKEN_SIGIO
  140. #endif
  141.  
  142.  
  143. #ifdef SIGTSTP
  144. /*
  145.  * sysdep.c(sys_suspend) works fine with emacs-18.58
  146.  * and BOS 02.00.45, if you have an earler version
  147.  * of Emacs and/or BOS, or have problems, or just prefer
  148.  * to start a sub-shell rather than suspend-emacs,
  149.  * un-comment out the next line.
  150.  */
  151. /* # undef SIGTSTP /* make suspend-emacs spawn a sub-shell */
  152. #endif
  153. /*
  154.  * no we don't want this at all
  155.  */
  156. #ifdef USG_JOBCTRL
  157. # undef USG_JOBCTRL
  158. #endif
  159.  
  160. /*
  161.  * but we have that
  162. */
  163. #define GETPGRP_NO_ARG
  164.  
  165. /* select also needs this header file--but not in ymakefile.  */
  166. #ifndef NOT_C_CODE
  167. #include <sys/types.h>
  168. #include <sys/select.h>
  169. #endif
  170.  
  171. #define TEXT_START 0
  172.  
  173. /* 
  174.  * Define the direction of stack growth. 
  175.  */
  176.  
  177. #define STACK_DIRECTION -1
  178.  
  179. /* we also have this */
  180. #define HAVE_PTYS
  181. #define SYSV_PTYS
  182.  
  183. /* on bos2.00.45 there is a bug that makes the F_SETOWN fcntl() call
  184.    enters in an infinite loop. Avoid calling it  */
  185. #define F_SETOWN_BUG
  186.  
  187. /* system closedir sometimes complains about wrong descriptor
  188.    for no apparent reasons. Use the provided closedir in sysdep.c instead */
  189. #ifdef HAVE_CLOSEDIR
  190. #undef HAVE_CLOSEDIR
  191. #endif
  192.  
  193. /* Send signals to subprocesses by "typing" signal chars at them.  */
  194. #define SIGNALS_VIA_CHARACTERS
  195.  
  196. /* This is to prevent memory clobbering on the DPX/2 200.  */
  197. #define LD_SWITCH_MACHINE -N -T32
  198.  
  199.  /* end of dpx2.h */
  200.  
  201.  
  202.